package com.ship.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 物料清单
 * @author wqf
 * @version  Nov 24, 2011 9:49:12 AM
 */
@Entity
@org.hibernate.annotations.Entity(
		selectBeforeUpdate = true, 
		dynamicInsert = true, 
		dynamicUpdate = true
)
@Table(name="ship_material")
public class ShipMaterial implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4966254696922036557L;

	@Id
	@GeneratedValue
	private Long id;
	
	/**
	 * 材料编码
	 */
	@Column(length=100)
	private String code;
		
	/**
	 * 材料名称
	 */
	@Column(length=100)
	private String name;
	
	/**
	 *规格型号
	 */
	@Column(length=100)
	private String format;
	
	/**
	 *计量单位
	 */
	@Column(length=50)
	private String unit;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}	

}
